package com.loren.designer.data.resp;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
public class SuccessResponse extends ResponseCode implements Serializable {

    private static final long serialVersionUID = 5428279323596619824L;

    private Object message;

    public SuccessResponse(Object message) {
        this.message = message;
    }

    public static SuccessResponse success(Object message) {
        return new SuccessResponse(message);
    }

    public static SuccessResponse success() {
        return new SuccessResponse("success");
    }
}
